<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/axios-0.20.0.js"></script>
  <script src="./js/qs-6.9.4.js"></script>
</head>

<body>
  <script>
    // 默认发送json格式数据 gct请求方法
    let obj = {
      username: 'admin1',
      password: 123321
    };
    let Cobj = Qs.stringify(obj)
    axios({
      // 请求路径
      url: 'http://121.199.0.35:8888/index/carousel/findAll',
      // 请求方式
      method: 'post',
      // get参数携带在params上
      params: {
        // Cobj
      },
      // headers:{
      //     'Content-Type':'application/x-www-form-urlencoded'
      // },
      // post参数携带在data上
      data: {
        username: 'admin1',
        password: 123321
      }
    })
  </script>
</body>

</html>